package daotest;

import dao.SubjectDao;
import dao.SubjectDaoImpl;
import entity.Subject;

import java.util.List;

/**
 * @author oldliu
 * @since 1.0
 */
public class TestSubject {
    public static void main(String[] args) {
        SubjectDao dao=new SubjectDaoImpl();
//        Subject st=new Subject(7L,"科学养虾",10);
//////        int add = dao.add(st);
//////        if(add>0){
//////            System.out.println("新课加入成功");
//////        }else{
//////            System.out.println("增加失败");
//////        }
//////        List<Subject> all = dao.findALL();
//////        all.forEach(System.out::println);
        List<Subject> list = dao.find("java", 1, 10);
        list.forEach(System.out::println);
    }
}
